package com.ruoyi.project.modules.businessUsage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;
import java.util.Set;

/**
 * 业务需求用况关系对象 t_business_usage
 *
 * @author smallrain
 * @date 2021-11-06
 */
public class BusinessUsage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 业务ID
     */
    @Excel(name = "业务ID")
    private Long businessId;

    /**
     * 关联对象ID
     */
    @Excel(name = "关联对象ID")
    private Long usageId;

    private Set<Long> usageIds;

    private List<Long> businessIds;

    public List<Long> getBusinessIds() {
        return businessIds;
    }

    public void setBusinessIds(List<Long> businessIds) {
        this.businessIds = businessIds;
    }

    public Set<Long> getUsageIds() {
        return usageIds;
    }

    public void setUsageIds(Set<Long> usageIds) {
        this.usageIds = usageIds;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setUsageId(Long usageId) {
        this.usageId = usageId;
    }

    public Long getUsageId() {
        return usageId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("businessId", getBusinessId())
                .append("usageId", getUsageId())
                .toString();
    }
}
